#!/bin/bash

#Usage: sh upload.sh (duh!)

#and your arduino must listen to the resetarguments

#point to your uploaders, set the respective arguments and point to a hex file. THis is set up for Arduino Uno, also the Hex files are for arduino uno
AVRDUDE="/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude"
AVRCONFIGFILE="-C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
AVRARGUMENTS="-v -p atmega328p -c stk500v1 -P /dev/tty.usbserial-A900fra9 -b 115200 -D -U flash:w:"
HEXFILE="qbar.cpp.hex"

echo "Push that buttawn"

$AVRDUDE $AVRCONFIGFILE $AVRARGUMENTS$HEXFILE
